🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / feature / map / src / commonMain / kotlin / org / meshtastic / feature / map / kml / KmlModel.kt
Displaying Raw • Download
feature/map/src/commonMain/kotlin/org/meshtastic/feature/map/kml/KmlModel.kt renovate/fastlane-2.x-lockfile (056eed64) Text, 2.45 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.feature.map.kml
T8b949e/** A KML `<Style>`: the colours and width this app can carry through to simplestyle. */
Tff7b72internal Tff7b72data Tff7b72class T56d364KmlStyleTb4b4b4(
Tff7b72val Te6edf3lineColorTb4b4b4: Tffa657String? Tff7b72= Tff7b72nullTb4b4b4,
Tff7b72val Te6edf3lineWidthTb4b4b4: Tffa657Float? Tff7b72= Tff7b72nullTb4b4b4,
Tff7b72val Te6edf3fillColorTb4b4b4: Tffa657String? Tff7b72= Tff7b72nullTb4b4b4,
Tff7b72val Te6edf3filledTb4b4b4: Tffa657Boolean Tff7b72= Tff7b72trueTb4b4b4,
T8b949e/** `<IconStyle><Icon><href>` — the image a point is drawn with, if the KML names one. */
Tff7b72val Te6edf3iconHrefTb4b4b4: Tffa657String? Tff7b72= Tff7b72nullTb4b4b4,
Tb4b4b4)
Tff7b72internal Tff7b72class T56d364PlacemarkTb4b4b4(
Tff7b72val Te6edf3nameTb4b4b4: Tffa657String?Tb4b4b4,
Tff7b72val Te6edf3descriptionTb4b4b4: Tffa657String?Tb4b4b4,
Tff7b72val Te6edf3styleUrlTb4b4b4: Tffa657String?Tb4b4b4,
T8b949e/** A `<Style>` written inside the Placemark. Takes precedence over [styleUrl], as KML specifies. */
Tff7b72val Te6edf3inlineStyleTb4b4b4: Te6edf3KmlStyle? Tff7b72= Tff7b72nullTb4b4b4,
Tb4b4b4) Tb4b4b4{
Tff7b72val Te6edf3geometries Tff7b72= Te6edf3mutableListOfTff7b72<Te6edf3KmlGeometryTff7b72>Tb4b4b4(Tb4b4b4)
Tb4b4b4}
T8b949e/** A parsed geometry, held as its GeoJSON type and already-formatted coordinates. */
Tff7b72internal Tff7b72class T56d364KmlGeometryTb4b4b4(Tff7b72val Te6edf3typeTb4b4b4: Tffa657StringTb4b4b4, Tff7b72val Te6edf3coordinatesTb4b4b4: Tffa657StringTb4b4b4, Tff7b72val Te6edf3isPolygonalTb4b4b4: Tffa657BooleanTb4b4b4)
T8b949e/**
* A KML `<GroundOverlay>`: an image draped over a `<LatLonBox>`.
*
* [rotationDegrees] is the box's optional `<rotation>` — degrees counter-clockwise about the box centre, per the KML
* reference. [href] is untouched: a KMZ-packed relative path, an absolute URL, or (as the Site Planner exports) a
* sibling file name that nothing can fetch — what is reachable is the importer's judgement, not the parser's.
*/
Tff7b72data Tff7b72class T56d364KmlGroundOverlayTb4b4b4(
Tff7b72val Te6edf3nameTb4b4b4: Tffa657String?Tb4b4b4,
Tff7b72val Te6edf3hrefTb4b4b4: Tffa657StringTb4b4b4,
Tff7b72val Te6edf3northTb4b4b4: Tffa657DoubleTb4b4b4,
Tff7b72val Te6edf3southTb4b4b4: Tffa657DoubleTb4b4b4,
Tff7b72val Te6edf3eastTb4b4b4: Tffa657DoubleTb4b4b4,
Tff7b72val Te6edf3westTb4b4b4: Tffa657DoubleTb4b4b4,
Tff7b72val Te6edf3rotationDegreesTb4b4b4: Tffa657Double Tff7b72= T79c0ff0.0Tb4b4b4,
Tb4b4b4)
T8b949e/** Everything a KML document holds that this app can draw: vector features as GeoJSON, plus the image overlays. */
Tff7b72data Tff7b72class T56d364KmlConversionTb4b4b4(Tff7b72val Te6edf3geoJsonTb4b4b4: Tffa657String?Tb4b4b4, Tff7b72val Te6edf3groundOverlaysTb4b4b4: Te6edf3ListTff7b72<Te6edf3KmlGroundOverlayTff7b72>Tb4b4b4)
Served by rngit 1.5.2 - Generated in 0.06s